<?php

class my_order_detail{
public function index()
{
$root = array();
$order_id = intval($GLOBALS['request']['id']);
$sql_count = 'SELECT COUNT(id)  FROM '.DB_PREFIX.'supplier_location_order  WHERE id = '.$order_id.'   ';
$count=$GLOBALS['db']->getOne($sql_count);
if($count>0){
$list = $GLOBALS['db']->getRow('select slo.id as order_id,sl.id as supplier_id,slo.order_sn,sl.name as supplier_name,slo.order_name,slo.order_sex,slo.order_nums,slo.seat_status,slo.order_msg,sl.address,slo.order_time,slo.order_tel,slo.status from '.DB_PREFIX.'supplier_location_order as slo left join '.DB_PREFIX.'supplier_location as sl on slo.sid=sl.id  where slo.id = '.$order_id.'    ');
$list['order_time']=Date('Y-m-d H:m:s',$list['order_time']);
$root['item']=$list;
}else{
$root['info'] ='您所查的订单不存在';
}
output($root);
}
}

?>